﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ComunesMGI.DataTypes;
using MGI.AccesoDatos.AccesoBD;

namespace MGI.AccesoDatos
{
    class DAOWorkPackages: IDatosWorkPackages
    {
        #region IDatosWorkPackages Members

        public int AddWorkPackage(int idSistema, DataWP workPackage)
        {
            BDWorkPackages bdWP = new BDWorkPackages();
            return bdWP.AddWorkPackage(idSistema, workPackage);
        }

        public List<DataWP> GetWorkPackages(int sisCod)
        {
            BDWorkPackages bdWP = new BDWorkPackages();
            return bdWP.GetWorkPackages(sisCod);
        }

        public List<DataEstadoWP> GetEstadosWP()
        {
            BDWorkPackages bdWP = new BDWorkPackages();
            return bdWP.GetEstadosWP();
        }

        public void ModificarWP(DataWP wp) 
        {
            BDWorkPackages bdWP = new BDWorkPackages();
            bdWP.ModificarWP(wp);
        }

        public DataWP GetWorkPackage(int wpId)
        { 
            BDWorkPackages bdWP = new BDWorkPackages();
            return bdWP.GetWPPorId(wpId);
        }


        #endregion
    }
}
